/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Observer_meu_codigo;

import java.util.ArrayList;

/**
 *
 * @author Marcel
 */
public class ConcreteSubject extends Subject {
    
    String palavra;
    
    public ConcreteSubject () {
        observers = new ArrayList<Observer>();
    }
    
    public void setPalavra (String palavra) {
        this.palavra = palavra;
        notifica();
    }

    public String getPalavra() {
        return palavra;
    }
    
}
